package com.htudata.core.exception;

import lombok.Getter;
import lombok.Setter;

public class ServiceException extends Exception {
  private static final long serialVersionUID = 1L;

  @Getter
  @Setter
  private int status;
  @Getter
  @Setter
  private String code;
  
  public ServiceException(String code, int status, String msg) {
    super(msg);
    this.status = status;
    this.code = code;
  }
  
  public ServiceException(int status, String msg) {
    super(msg);
    this.status = status;
  }

}
